solving exercises on arithmetic series